package com.lakeworks.web.controller.core;

import com.lakeworks.common.core.controller.BaseController;
import com.lakeworks.common.core.domain.AjaxResult;
import com.lakeworks.domain.SysRobot;
import com.lakeworks.service.ISysRobotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 自动配置Controller
 *
 * @author lake
 * @date 2023-02-27
 */
@Controller
@RequestMapping("/system/robot")
public class SysRobotController extends BaseController {

    @Autowired
    private ISysRobotService sysRobotService;


    /**
     * 查询自动配置列表
     */
    @PostMapping("/list")
    @ResponseBody
    public AjaxResult list(SysRobot sysRobot) {
        List<SysRobot> list = sysRobotService.selectSysRobotList(sysRobot);
        return AjaxResult.success(list);
    }
}
